Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Experiment with job-context action #3

Closed
wants to merge 48 commits into from
Closed

Experiment with job-context action #3

wants to merge 48 commits into from

Conversation

omus
Copy link
Member

@omus omus commented Aug 13, 2024

Prototyping a new GHA job-context which is meant for determining the job name and id which are things both not available via GHA contexts.

In particular this actions allows runnings jobs to determine their own job name and job ID which is useful when interacting with the GitHub API. The intent is to use this action so that the matrix-output job can include the job ID as part of the artifact name.

One relevant implementation detail is that this action makes use of multiple GitHub contexts in order to generate the job name. Without these contexts we couldn't fill in the allows GitHub expressions which can be present in a job name. If we could solve this problem in another way we may be able to allow the use of a user specified job key.

@omus
Copy link
Member Author

omus commented Aug 13, 2024

Noticed that you can use name: ${{ github.job }} but if I end up using name: ${{ github.job }} - ${{ matrix.index }} then ${{ github.job }} is empty for the GitHub rendered job name...

@omus omus changed the title Experiment with job-name action Experiment with job-context action Aug 13, 2024
@omus
Copy link
Member Author

omus commented Aug 16, 2024

Superseded by beacon-biosignals/job-context#1

@omus omus closed this Aug 16, 2024
@omus omus deleted the cv/job-name branch August 16, 2024 16:48
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant